﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DataBase.Daihoctuonglai;

namespace dai_hoc_tuong_lai.Areas.Admin.Models
{
    public class ModelPageSetting
    {
        public int Id { get; set; }
        public string Logo { get; set; }
        public string background { get; set; }
        public string keywork { get; set; }
        public string KeyDesription { get; set; }
        public string TitleKey { get; set; }
        public string AddressFooter { get; set; }
        public string Message { get; set; }


        public static void MapForm(ModelPageSetting model, ref Setting_Page entity)
        {
            entity.Id = model.Id;
            entity.Logo = model.Logo;
            entity.background = model.background;
            entity.keywork = model.keywork;
            entity.KeyDesription = model.KeyDesription;
            entity.TitleKey = model.TitleKey;
            entity.AddressFooter = model.AddressFooter;
            
            
        }

        public static void MapForm(Setting_Page entity, ref ModelPageSetting model)
        {
            model.Id = entity.Id;
            model.Logo = entity.Logo;
            model.background = entity.background;
            model.keywork = entity.keywork;
            model.KeyDesription = entity.KeyDesription;
            model.TitleKey = entity.TitleKey;
            model.AddressFooter = entity.AddressFooter;
        }

    }
}